<?php


namespace app\models\user;


use think\Model;

class DepartmentModel extends Model
{
    protected $name = 'department';

    protected $autoWriteTimestamp = true;

    public function user()
    {
        return $this->belongsTo(UserModel::class, 'department_id', 'id');
    }
}